package iit.projects.etaxi.model.entity;

import java.io.Serializable;

public class ReceivedSms implements Serializable {

	private static final long serialVersionUID = 4237040646139614164L;
	
	/**
	 * <p>Primary Key</p>
	 */
	private Long id;
	
	/**
	 * <p>Ex: PROCESSED, NEW (Defaults to NEW)</p>
	 */
	private String status = "NEW";
	
	/**
	 * <p>Sms Content</p>
	 */
	private String message;
	
	/**
	 * <p>Mobile Number of Sender</p>
	 */
	private String sender;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ReceivedSms other = (ReceivedSms) obj;
		if (getId() == null) {
			if (other.getId() != null)
				return false;
		} else if (!getId().equals(other.getId()))
			return false;
		return true;
	}

}
